package com.isoftstone.guodian.framework.baseService;

import com.isoftstone.guodian.framework.baseEntity.BaseEntity;

import java.util.List;

/**
 * Service层接口继承该接口
 */
public interface BaseService  <T extends BaseEntity> {
    public int saveEntity(T entity) throws Exception;
    public int updateEntity(T entity) throws Exception;
    public int deleteEntity(String id) throws Exception;
    public T selectById(String id) throws Exception;
    public List<T>  selectALL(StringBuffer whereSql) throws Exception;
    public int selectTotal(T entity) throws Exception;
    public List<T>  selectForPage(T entity) throws Exception;

}
